imports.gi.versions.Gtk = '3.0';
imports.gi.versions.WebKit2 = '4.0';
const Gtk = imports.gi.Gtk;
const WebKit = imports.gi.WebKit2;

Gtk.init(null);

let win = new Gtk.Window();
win.title = "this is my brower!";

let view = new WebKit.WebView();
view.load_uri('http://www.baidu.com/');
win.add(view);

win.connect('destroy', () => { Gtk.main_quit(); });

win.set_size_request(1280, 720);
win.show_all();

Gtk.main();

